package com.ruan.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.time.OffsetDateTime;
import java.time.ZonedDateTime;
import java.util.List;

/**
 * 任务信息查询条件
 */
@Data
public class QueryTasksCondition implements Serializable {

    private Long id;
    private String projectName;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
    private List<LocalDateTime> dateRange;

    //    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
//    private LocalDateTime startDate;
//    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
//    private LocalDateTime endDate;
    private String lineName;
    private String workshopName;
    private String completionStatus;//状态

}
